package com.informatics.polymer.server.database;
/**
 * Class represents a repeat unit, it has an Id, associated smiles string and list of properties.
 * @author ed
 * @version 1.0
 */
public class RepeatUnit {
	/**
	 * Repeat unit Id.
	 */
	private String id;
	/**
	 * Repeat unit smiles string representation.
	 */
	private String smilesString;
	/**
	 * Array to hold descriptor values.
	 */
	private double[] descriptors = new double[16];
	/**
	 * Instantiates RepeatUnit.
	 */
	public RepeatUnit(String idValue,String smiles, double descriptorArray[]){
		this.id = idValue;
		this.smilesString = smiles;
		this.descriptors = descriptorArray;
	}
	/**
	 * Gets repeat unit Id.
	 * @return String representation of Id.
	 */
	public String getId(){
		return id;
	}
	/**
	 * Gets smiles string.
	 * @return String representation of smiles string.
	 */
	public String getSmilesString(){
		return smilesString;
	}
	/**
	 * Gets descriptors.
	 * @return array of doubles representing the precalculated descriptors.
	 */
	public double[] getDescriptors(){
		return descriptors;
	}
	
}
